/**
 * FileName: JackSonConfiguration
 * Author:   miao_jin
 * Date:     2020/5/14 9:52
 * Description: //模块目的、功能描述
 */
package com.wangc.commons.configuration.jackson;

import com.fasterxml.jackson.databind.*;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * 〈功能详细描述〉
 *
 * @author miao_jin
 */

@Configuration
public class JacksonConfiguration {

    @Bean
    @Primary
    @ConditionalOnMissingBean(ObjectMapper.class)
    public ObjectMapper jacksonObjectMapper() {
        return new JacksonCustom().customObjectMapper();
    }
}
